int firstUniqChar(char* s) {
	int arr[256] = { 0 };
	char* str = s;
	while (*str) {
		arr[*str++]++;
	}
	str = s;
	while (*str) {
		if (arr[*str] == 1)
			return str - s;
		str++;
	}
	return -1;
}